import { IsOptional, IsNumber, IsString, MaxLength, Min } from 'class-validator';
import PaginationDto from '../../dtos/pagination.dto';

export class PageDto extends PaginationDto {
    @IsNumber()
    @IsOptional()
    status:number;


    @IsNumber()
    @IsOptional()
    startTime:number;

    @IsNumber()
    @IsOptional()
    endTime:number;
}

export class RefuseDto {
    @Min(1)
    @IsNumber()
    id:number;


    @IsString()
    @IsOptional()
    reason:string;
}

